<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>

<link href="<%=basePath %>admin/images/skin.css" rel="stylesheet" type="text/css" />
<body>
    <%
     if(session.getAttribute("msg")!=null)
     {
       %>
        <script type="text/javascript">
         alert('<%=session.getAttribute("msg")%>');  
        </script>
       <%
       session.removeAttribute("msg");
     }
     %>

	
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" height="29" valign="top"
					background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/left-top-right.gif" width="17" height="29" />
				</td>
				<td width="935" height="29" valign="top"
					background="<%=basePath %>admin/images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									活动信息管理
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top"
					background="<%=basePath %>admin/images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td height="71" valign="middle"
					background="<%=basePath %>admin/images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="100%" height="138" border="0" cellpadding="0"
						cellspacing="0">
						
						<tr>
							<td valign="top">
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：活动信息管理
										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="<%=basePath %>admin/images/world_browser.png" width="54" height="55">
													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">在这里，您可以根据您的网站要求，修改设置网站的</span><span
															class="left_txt3">基本参数</span><span class="left_txt2">！</span>
														<br>
														<span class="left_txt2">包括</span><span class="left_txt3">网站名称，网址，网站备案号，联系方式，网站公告，关键词，风格</span><span
															class="left_txt2">等以及网站</span><span class="left_txt3">会员及等级积分设置</span><span
															class="left_txt2">。 </span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td >
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2">
														&nbsp;&nbsp;&nbsp;&nbsp;活动信息管理
													</td>
													<td class="left_bt2">
													<form  method="POST" action="activity!findAllActive_activity_ByLimit.action"  style="height: 20px;">
											     按照文章标题模糊查询：											     
													       <input type="text" name="title" value="${title }" size="12">
					                                   类型:    <select name="ctype">
				                                            <option value="">全部</option>
				                                            <option value="01">交友聚会</option>
				                                            <option value="02">拓展训练</option>
				                                            <option value="03">卡拉OK比赛</option>
				                                            <option value="04">户外郊游</option>
				                                           </select>
													        &nbsp;&nbsp;&nbsp;&nbsp;
													        <input type="submit" value="查询">
													</form>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td style="border: 1px solid #C2C2C2;">
											<table width="100%" height="350" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
                                                   <td valign="top">
                                                    <table border="0" width="100%" style="font-size: 14px;"> 
                                                       <tr height="10" align="center">
                                                        <td>编号</td>
                                                        <td>小分类</td>
                                                        <td>活动标题</td>
                                                        <td>主办方</td>
                                                        <td>发布时间</td>
                                                        <td>是否公开</td>
                                                        <td>报名数/浏览量</td>
                                                        <td>活动状态</td>
                                                        <td>报名信息</td>
                                                        <td>修改/查看</td>
                                                        <td>删除</td>
                                                       </tr>  
                                                                                              
                                                      <c:if test="${!empty pm.datas}">
												<c:forEach items="${pm.datas}" var="active">
													<tr bgcolor="#EFF3F7">
														<td align="center">
															${active.aid }
														</td>
														<td align="center">
															 ${active.cname}&nbsp;
														</td>
														<td align="left">
														    <a href="<%=basePath%>job/${active.aid }.html" target="_blank" style="text-decoration: underline;">
														      <font color="blue">${active.title}&nbsp;</font>
														    </a>
														</td>
														<td align="left">
														    ${active.ballname}&nbsp;
														</td>	
														<td align="center">
															<fmt:formatDate value="${active.atime}" pattern="yyyy-MM-dd HH:mm"/>&nbsp;
														</td>
														<td align="center">
														 ${active.remark2 }
														</td>
														<td align="center">
															${active.nownum}/${active.scannum}&nbsp;
														</td>
														<td align="center">
															<c:if test="${'1' eq active.statu}">
																     <font color="blue">结束</font>
																    </c:if>
																    <c:if test="${'2' eq active.statu}">
																     <font color="green">进行中...</font>
																    </c:if>
																    <c:if test="${'3' eq active.statu}">
																     <font color="red">招满</font>
														    </c:if>
														</td>
														<td align="center">
															<a href="index!findAllJohninfo.action?aid=${active.aid }" style="text-decoration: underline;color:blue;">报名查看</a>
														</td>
														<td align="center">
															<a href="activity!findActiveByAid.action?active.aid=${active.aid }" style="text-decoration: underline;color:blue;">
															  修改/查看
															</a>
														</td>
														<td align="center">
															<a href="activity!delActive.action?active.aid=${active.aid }" style="text-decoration: underline;color:blue;">
															 删除
															</a>
														</td>
														
													</tr>
												</c:forEach>
											</c:if>
											<c:if test="${empty pm.datas}">
												<tr>
													<td colspan="11" align="center" bgcolor="#EFF3F7">
														没有找到相应的记录
													</td>
												</tr>
											</c:if>
											    <tr>
											     <td colspan="11" align="right">
											     【<a href="index!findAllActivesToExcel.action?title=${title }&ctype=${ctype }&mtype=02&bid=${bid }">数据导出</a>】
											     <pg:pager url="activity!findAllActive_activity_ByLimit.action" items="${pm.total}"
											export="currentPageNumber=pageNumber" maxPageItems="10"
											maxIndexPages="10">
											<pg:first>
												<a href="${pageUrl}&title=${title }&ctype=${ctype }">首页</a>
											</pg:first>  
                                             [第${currentPageNumber}页]/[共${pm.total}条记录]
                                            <pg:prev>
												<a href="${pageUrl }&title=${title }&ctype=${ctype }">上一页</a>
											</pg:prev>
											<pg:pages>
												<c:choose>
													<c:when test="${currentPageNumber eq pageNumber}">
														<font color="red">${pageNumber }</font>
													</c:when>
													<c:otherwise>
														<a href="${pageUrl }">${pageNumber }</a>
													</c:otherwise>
												</c:choose>
											</pg:pages>
											<pg:next>
												<a href="${pageUrl }&title=${title }&ctype=${ctype }">下一页</a>
											</pg:next>
											<pg:last>
												<a href="${pageUrl }&title=${title }&ctype=${ctype }">尾页</a>
											</pg:last>
										</pg:pager>
											    </td>
											    </tr>  
                                              </table>                                             
                                                </td>
											 </tr>											
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="middle" background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td height="17" valign="top"
					background="<%=basePath %>admin/images/buttom_bgs.gif">
					<img src="<%=basePath %>admin/images/buttom_bgs.gif" width="17" height="17" />
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>
</body>
